<!doctype html>
<html>
    <head>
        <?php
        if (system\session::get('logged') == false AND SECURE <> 'XLKDZJRKWOSLCMG') : throw new \Exception('Nemáte oprávnění přistupovat k souboru!', 761);
        endif;
        ?>
        <meta charset="<?php echo CHARSET; ?>">
        <title><?php echo $webname; ?></title>
        <link href="<?php echo WWW_PATH; ?>/public/css/index.css" rel="stylesheet" type="text/css" media="screen">
    </head>

    <body>
        <div class="container">
            <div class="header"><strong>php</strong><u>notes</u>~</div>
            <div class="menu"><a href="<?php echo WWW_PATH; ?>/verejne">veřejné</a> | <a href="<?php echo WWW_PATH; ?>/soukrome/note">poznámky</a> | <a href="<?php echo WWW_PATH; ?>/soukrome/todo">todo</a> | <a href="<?php echo WWW_PATH; ?>/soukrome/manual">návody</a> | <a href="<?php echo WWW_PATH; ?>/kontakty">kontakty</a> | <a href="<?php echo WWW_PATH; ?>/nastaveni">nastavení</a> | <a href="<?php echo WWW_PATH; ?>/logout">odhlásit</a></div>
            <div class="info"><?php echo $info; ?></div>
            <div class="contents">
                <div id="item">
                    <form id="form3" method="post" action="<?php echo WWW_PATH; ?>/verejne/upravit/id/<?php echo $contents['id']; ?>/ulozit/true">
                        <table width="670" id="contents">
                            <tr>
                                <td width="25%" align="right"><label for="titlefield">titulek: </label></td>
                                <td width="75%"><input type="text" name="titlefield" value="<?php echo urldecode($contents['title']); ?>"></td>
                            </tr>
                            <tr>
                                <td width="25%" valign="top" align="right"><label for="textfield">text: </label></td>
                                <td width="75%" align="left"><textarea form="form3" type="text" name="textfield" rows="10" cols="50"><?php echo $contents['text']; ?></textarea></td>
                            </tr>
                        </table>
                </div>
                        <input type="submit" name="form2" value="odeslat">
                    </form>
            </div>
            <div class="sidebar"><?php echo $sidebar; ?></div>
            <div class="footer"><?php echo $footer; ?></div>
        </div>
    </body>
</html>